package xyz.erupt.flow.bean.entity.erupt;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.jpa.model.BaseModel;

import javax.persistence.*;

/**
 * @author PP
 * @version 1.0
 * @project Erupt
 * @description 用户签名
 * @date 2024/9/24 11:20:19
 */
@Erupt(
        name = "用户签名"
)
@Table(name = "oa_user_sign")
@TableName("oa_user_sign")
@Entity
@Data
public class EruptUserSign extends BaseModel {
    @Id
    @GeneratedValue(generator = "generator")
    @GenericGenerator(name = "generator", strategy = "native")
    @Column(name = "id")
    @EruptField
    @TableId(type = IdType.AUTO)
    private Long id;

    @Lob
    private String sign;

    private String account;
}
